home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
lisp
/
wcl-21.lha
/
wcl-2.1
/
src
/
build
/
kcl.lsp
< prev
next >
Wrap
Lisp/Scheme
|
1992-09-10
|
1KB
|
54 lines
;;; (C) Copyright 1990-1992 by Wade L. Hennessey. All rights reserved.
;;; HEY! I doubt that builds with kcl work anymore...
(in-package "W")
(setf *default-pathname-defaults* ".lisp")
(proclaim '(optimize (speed 0) (safety 3) (compilation-speed 3) (space 0))))
;(format t "~%********Growing stacks*************~%")
(setf si::*multiply-stacks* 2)
(in-package "W")
(defmacro select (key-form &rest cases)
(let ((key (gensym "KEY")))
`(let ((,key ,key-form))
(cond ,@(loop for (case . consequent) in cases
collect (cons (if (member case '(t otherwise))
t
(if (atom case)
`(eql ,key ,case)
`(member ,key (list ,@case))))
consequent))))))
(progn (defun shell (cmd)
(if (> (length cmd) 1023)
(progn
(warn "Cmd too long for losing KCL SYSTEM function")
(warn "Executing via a shell script")
(with-open-file (out "kcl-tmp" :direction :output)
(write-string cmd out)))
(system "kcl-tmp")
(system cmd)))
(setf *print-circle* t)
(defmacro destructuring-bind (l form &body body)
`(destructure (,l ,form) ,@body)))
;;; (setf compiler::*cc* "echo SKIP CC ")
(in-package "USER")
(defun w ()
(load "system-builder")
(load "make")
(in-package "W"))
(setf si:*notify-gbc* t)
(allocate 'cons 1500 t)
(allocate 'string 300 t)